package com.ksyun.campus.metaserver;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * MinFS MetaServer Application
 * 
 * Features:
 * - Leader-based HA with ZooKeeper
 * - 3-replica control plane
 * - RocksDB metadata storage
 * - RESTful API
 * - Automatic FSCK and recovery
 */
@Slf4j
@EnableAsync
@EnableScheduling
@EnableConfigurationProperties
@SpringBootApplication
public class MetaServerApplication {
    
    public static void main(String[] args) {
        log.info("Starting MinFS MetaServer");
        SpringApplication.run(MetaServerApplication.class, args);
    }
}
